space cadet

Noun
  1. someone who seems unable to respond appropriately to reality (as if under the influence of some narcotic drug)
space cadet
A student stares out the window like a space cadet during the math lesson.